home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 16845 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.3 KB

  1. Path: pangea.Stanford.EDU!karish
  2. From: karish@pangea.Stanford.EDU (Chuck Karish)
  3. Newsgroups: comp.lang.ada,comp.lang.c,comp.lang.c++,comp.edu
  4. Subject: Re: ANSI C and POSIX (was Re: C/C++ knocks the crap out of Ada)
  5. Date: 12 Apr 1996 02:13:10 GMT
  6. Organization: Mindcraft, Inc.
  7. Message-ID: <4kke7m$ilr@nntp.Stanford.EDU>
  8. References: <dewar.828846122@schonberg> <828903511snz@genesis.demon.co.uk> <4kgjrc$4d@news.nyu.edu>
  9. NNTP-Posting-Host: pangea.stanford.edu
  10.  
  11. In article <4kgjrc$4d@news.nyu.edu>, halvin <halvin@acf4.nyu.edu> wrote:
  12. >Lawrence Kirby <fred@genesis.demon.co.uk> writes:
  13.  
  14. >this might be slightly off-topic, but isn't there a difference between the
  15. >ANSI and POSIX versions of fprintf? if i remember correctly, the ANSI version
  16. >returns 0 on success and EOF on failure -- but the POSIX version returns the
  17. >number of characters printed, or a negative number to indicate failure.
  18.  
  19. POSIX.1 defers to the C Standard for the specification of fprintf().
  20. Where POSIX.1 does add requirements on the behavior of C Standard
  21. features, the intent is always to enforce a more specific requirement
  22. without violating the C Standard.  Any conflict between POSIX.1 and
  23. Standard C is unintentional and is considered an error to be fixed
  24. by the POSIX committees.
  25. --
  26.  
  27.     Chuck Karish          karish@mindcraft.com
  28.     (415) 323-9000 x117   karish@pangea.stanford.edu
  29.